let miniVersion = __wxConfig.envVersion;
let ApiRootUrl = 'https://minipay.kunparking.com:1888/';
let ApiChatUrl = 'wss://minipay.kunparking.com';
console.log('小程序版本' + miniVersion)
if (miniVersion == 'develop') {
  // 调试版本路径
  // ApiRootUrl = 'https://pay.aiyard.cn:1999/';
  // ApiChatUrl = 'wss://pay.aiyard.cn';
  // 与好正式路径
  // ApiRootUrl = 'https://pay.yuhaozhixing.com:1999/';
  // ApiChatUrl = 'wss://pay.yuhaozhixing.com';
  // //昆城正式路径
  ApiRootUrl = 'https://minipay.kunparking.com:1888/';
  ApiChatUrl = 'wss://minipay.kunparking.com';
} else if (miniVersion == 'trial') {
  // 调试版本路径
  // ApiRootUrl = 'https://pay.aiyard.cn:1999/';
  // ApiChatUrl = 'wss://pay.aiyard.cn';
  // //与好正式路径
  // ApiRootUrl = 'https://pay.yuhaozhixing.com:1999/';
  // ApiChatUrl = 'wss://pay.yuhaozhixing.com';
  //昆城正式路径
  ApiRootUrl = 'https://minipay.kunparking.com:1888/';
  ApiChatUrl = 'wss://minipay.kunparking.com';
} else if (miniVersion == 'release') {
  // 调试版本路径
  // ApiRootUrl = 'https://pay.aiyard.cn:1999/';
  // ApiChatUrl = 'wss://pay.aiyard.cn';
  // //与好正式路径
  // ApiRootUrl = 'https://pay.yuhaozhixing.com:1999/';
  // ApiChatUrl = 'wss://pay.yuhaozhixing.com';
  //昆城正式路径
  ApiRootUrl = 'https://minipay.kunparking.com:1888/';
  ApiChatUrl = 'wss://minipay.kunparking.com';
} else {    // 多加的校验
  // //与好正式路径
  // ApiRootUrl = 'https://pay.yuhaozhixing.com:1999/';
  // ApiChatUrl = 'wss://pay.yuhaozhixing.com';
  //昆城正式路径
  ApiRootUrl = 'https://minipay.kunparking.com:1888/';
  ApiChatUrl = 'wss://minipay.kunparking.com';
}
module.exports = {
  // 登录
  ApiRootUrl: ApiRootUrl,
  ApiChatUrl: ApiChatUrl,  
  LoginWX: ApiRootUrl + 'api/v1.0/YardMiniPro/LoginWX', //微信登录
  settlementOrder: ApiRootUrl + 'api/v1.0/YardMiniPro/Settlementorder', //生成支付串
  settlement: ApiRootUrl + 'api/v1.0/YardMiniPro/Settlement', //生成支付串
  bindCar: ApiRootUrl + 'api/v1.0/YardMiniPro/BindCar', //绑定车牌
  stopRecord: ApiRootUrl+'api/v1.0/YardMiniPro/GetStopRecord',//停车记录
  titckets: ApiRootUrl+'api/v1.0/YardMiniPro/GetHYParkingTitckets',//停车券
  loginOut: ApiRootUrl+'api/v1.0/YardMiniPro/LoginOutWX',//退出登录
  isExistsFrozenParkingTitckets: ApiRootUrl+'api/v1.0/YardMiniPro/isExistsFrozenParkingTitckets',//退出登录
  getBarCodeLQ: ApiRootUrl+'api/v1.0/YardMiniPro/GetBarCodeLQ',//生成领券二维码
}